package com.group.mapper;

import com.group.pojo.Delivery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.group.utils.R;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Repository
public interface DeliveryMapper{
    //根据各个条件查询所有配送订单
    List<Delivery> findByProperty(Delivery delivery);

    //修改订单信息
    boolean updateDelivery(Delivery delivery,Integer id);

    //添加订单信息
    boolean insertDelivery(Delivery delivery);

    //删除和恢复订单信息
    boolean deleteByDeliveryId(String []args,Integer jud);

    //审核和取消审核订单信息
    boolean updateDeliveryExamine(String []args,Integer jud);

    //查找所有
    List<Delivery> findAll();

    List<Delivery> findById(Delivery delivery);

    Delivery findDeliveryById(Integer id);



}
